package proxy;

import db.domain.User;
import sf.tools.ObjectMapUtils;
import sf.tools.reflect.UnsafeWrapper;
import sf.tools.snowflake.SnowflakeIDWorker;

public class T2 {
    private int i;
    public static void main(String[] args) throws NoSuchFieldException {
        System.out.println(T2.class.getSimpleName());
        System.out.println(UnsafeWrapper.objectFieldOffset(T2.class.getDeclaredField("i")));
        System.out.println(Boolean.TRUE.equals(null));
        System.out.println(ObjectMapUtils.bean2map(new User()));

        SnowflakeIDWorker worker= new SnowflakeIDWorker(1,1);
        for (int i = 0; i < 100; i++) {
            System.out.println(worker.nextId());
        }
    }
}
